package com.xiaoke.domain.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 评论表(Comment)表实体类
 *
 * @author xiaoke
 * @since 2023-03-17 09:39:36
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comment")
public class Comment {
    @TableId
    private Long id;

    //文章ID
    private Long articleId;
    //父ID
    private Long pid;
    //作者
    private String author;
    //邮箱
    private String email;
    //内容
    private String content;

    @TableField(exist = false)
    private List children;
    //状态
    private String status;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //删除标志(1代表未删除,0代表已删除)
    private Integer delFlag;
}

